/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2024-04-07 09:18:42
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2024-04-07 10:08:21
 * @FilePath: /cdss-admin-web/src/views/dashboard/useJianBao.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import jianbaoImg from '@/assets/images/dashboard/jianbao.png';
import { ref } from 'vue';

interface JiabaoListItem {
    title: string;
    value: number;
    diffStr?: string;
    diff?: number;
}

export const useJianBao = () => {
    const title = '平台简报';

    const list = ref<JiabaoListItem[]>([
        { title: '新增内容总量', value: 999 },
        { title: '新增文档', value: 222 },
        { title: '新增音视频', value: 222 },
        { title: '新增电子书', value: 222 },
        { title: '浏览量', value: 999, diffStr: '较上月', diff: 56 },
        { title: '收藏量', value: 222, diffStr: '较上月', diff: -22 },
        { title: '点赞量', value: 222, diffStr: '较上月', diff: -15 },
        { title: '评论量', value: 222, diffStr: '较上月', diff: -21 }
    ]);

    return {
        title,
        jianbaoImg,
        list
    };
};
